package com.xy.annotaion.handler.initializer;

import com.xy.annotaion.handler.common.log.LogService;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.stereotype.Component;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * 这个是spring的servlet全局上下文加载器，但是归spring管理
 *
 * @author Dell
 */
@Component //spring bean manager OK
public class TestServletContextInitializerImpl implements ServletContextInitializer, LogService {
    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        log(servletContext);
    }
}
